﻿using System;

namespace Having.Site.Attr
{
    /// <summary>
    /// 用于标志返回的数据类型
    /// </summary>
    public enum DataType
    {
        /// <summary>
        /// 不加密(默认)
        /// </summary>
        normal = 0,
        /// <summary>
        /// 加密的数据
        /// </summary>
        encryption = 1,
        /// <summary>
        /// 不加密和加密数据同时返回
        /// </summary>
        whole = 2
    }

    /// <summary>
    /// 操作的方法
    /// </summary>
    [System.Flags]
    public enum MethodType
    {
        /// <summary>
        /// 仅用户可用
        /// </summary>
        OnlyForUser = 0x2,
        /// <summary>
        /// 仅商户可用
        /// </summary>
        OnlyForBuss = 0x4,
        /// <summary>
        /// 仅系统能用
        /// </summary>
        OnlyForSys = 0x16,

        /// <summary>
        /// 仅特殊能用
        /// </summary>
        OnlyForPeculiar = 0x256,

        /// <summary>
        /// 全部人可用
        /// </summary>
        Default = 0x1

    }
    /// <summary>
    /// 签名方式
    /// </summary>
    public enum CheckType
    {
        /// <summary>
        /// 不检验签名
        /// </summary>
        NO = 0,
        /// <summary>
        /// 检验签名
        /// </summary>
        Yes = 1


    }
}
